package com.mall.user.converter;

import com.mall.user.dal.entitys.UserVerify;
import com.mall.user.dto.UserRegisterRequest;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @Classname UserVerifyConverter
 * @Description NULL
 * @Date 2021/5/22 16:24
 * @Created by virus
 */
@Mapper(componentModel = "spring")
public interface UserVerifyConverter {

    @Mappings({
            @Mapping(source = "userName", target = "username")
    })
    UserVerify registerReq2UserVerify(UserRegisterRequest request);

}
